from django.contrib import admin
from django.urls import path
from django.views.generic.base import RedirectView

urlpatterns = [
    path('admin/', admin.site.urls),
    # 根路径重定向到admin
    path('', RedirectView.as_view(url='/admin/', permanent=False))
]
